package com.example.javachatroomextend;

import org.apache.tika.Tika;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;

public class Test {
    public static void main(String[] args) {
//        Tika tika = new Tika();
//        File file = new File("D:/tmp/images/lisi.jpg");
//        try {
//            String type = tika.detect(file);
//            System.out.println(type);
//        } catch (IOException e) {
//            throw new RuntimeException(e);
//        }

//        File file = new File("D:/tmp/images/zhangsan.jpg");
//        int index = file.getName().lastIndexOf(".");
//        System.out.println(file.getName().substring(index));
//        System.out.println(file.);
        String s = null;
        System.out.println("abc".equals(s));
    }
}
